package com.mask.im.business.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
/**
 * 角色管理
 * @author jian
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel("角色管理")
@TableName("sys_role")
public class SysRoleEntity {

	@TableId(value = "id",type = IdType.AUTO)
	@ApiModelProperty("角色id")
	private Integer id;

	@ApiModelProperty("角色名称")
	private String roleName;

	private Integer isDisable;

	@ApiModelProperty("创建时间")
	@TableField(fill = FieldFill.INSERT)
	private LocalDateTime createTime;

	@ApiModelProperty("更新时间")
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private LocalDateTime updateTime;
}
